const mongoose = require('mongoose');
const bcrypt = require('bcryptjs');

const Schema = mongoose.Schema,
    ObjectId = Schema.ObjectId;

/**
 * 客户表示一个企业级用户
 * @type {mongoose.Schema}
 */
let schema = new Schema({
    appkey: String,
    phone : String,
    msg : String,
    extend : String,
    deliver_time : String,

    create_time : {type : Date, default : Date.now},
    status : {type : Number, default : 0}  //0=未匹配，1=匹配完成，2=匹配失败

});

let model = mongoose.model('mo_msg', schema);

module.exports = model;
